IO::Pty provides an interface to allow the creation of a pseudo tty.

IO::Pty inherits from IO::Handle and so provide all the methods defined by the IO::Handle package.